﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Coding4Fun.Toolkit.Controls;

namespace RATSharpW7.View
{
    public class ViewUtils
    {

        //must be called from UI thread!!
        public static void reportError(string message) 
        {
            ToastPrompt toast = new ToastPrompt();
            toast.Title = Application.Current.Resources["ErrorToastLabel"] as string;
            toast.Message = message != null ? message : "unknown";
            toast.Background = new SolidColorBrush(Colors.Red);
            toast.Show();
        }

        public static void reportMessage(string message)
        {
            ToastPrompt toast = new ToastPrompt();
            toast.Title = message;
            toast.Background = new SolidColorBrush(Colors.Blue);
            toast.Show();
        }

    }
}
